package com.lp.chapter001.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 
 * @TableName teacher
 */
@Data
@TableName(value ="teacher")
public class Teacher implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 老师编号
     */
    private Long no;

    /**
     * 老师名称
     */
    private String name;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}